package com.yfp.operation.mapper;

import com.yfp.operation.domain.MiniBannerPosition;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author admin
* @description 针对表【mini_banner_position(广告点位关系)】的数据库操作Mapper
* @createDate 2024-12-18 11:36:23
* @Entity domain.com.yfp.operation.MiniBannerPosition
*/
public interface MiniBannerPositionMapper extends BaseMapper<MiniBannerPosition> {

    /**
     * 根据bannerId删除
     * @param id
     */
    void deleteByBannerId(Long id);

    /**
     * 批量新增
     * @param positionIds
     * @param id
     */
    void adds(@Param("positionIds") List<String> positionIds, @Param("id") Long id);

    /**
     * banner关联的点位列表
     * @param id
     * @return
     */
    List<String> getByBannerId(Long id);
}




